<?php
/*------------------------------------------------------------------------
# JoomShaper Accordion Module by JoomShaper.com
# ------------------------------------------------------------------------
# author    JoomShaper http://www.joomshaper.com
# copyright Copyright (C) 2010 JoomShaper.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.joomshaper.com - http://www.joomxpert.com
-------------------------------------------------------------------------*/
// no direct access
defined('_JEXEC') or die('Restricted access');
?>
<script type="text/javascript">
window.addEvent('domready', function() {
	var myAccordion<?php echo $uniqid; ?> = new Accordion($('accordion_sp1_id<?php echo $uniqid; ?>'), '.toggler', '.sp_inner', {
		opacity: <?php echo $opacity ?>,
		alwaysHide: true,		
		onActive: function(toggler, sp_inner){
			toggler.addClass('active');
		},
		onBackground: function(toggler, sp_inner){
			toggler.removeClass('active');
		}
	});
});
</script>
<div id="accordion_sp1_id<?php echo $uniqid; ?>" class="accordion_sp1_id<?php echo $uniqid; ?>">
	<?php foreach ( $list as $row ){ ?>
		<div class="toggler">
			<span><span><?php echo $row->title; ?></span></span>
		</div>
		<div class="clr"></div>
		<div class="sp_inner">
			<?php echo $row->introtext; ?>
		</div>
	<?php } ?>
</div>
